package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息通知对象 notice
 * 
 * @author lfm
 * @date 2024-08-17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Notice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 通信信息 */
    @Excel(name = "通信信息")
    private String message;

    /** 用户 */
    @Excel(name = "用户")
    private Long userId;

    /** 通知类型 */
    @Excel(name = "通知类型")
    private Long typeId;

    @TableField(exist = false)
    private Noticetype noticetype;

    /** 关键字 */
    @Excel(name = "关键字")
    private String keywords;

    /** $column.columnComment */
    private Long del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setKeywords(String keywords) 
    {
        this.keywords = keywords;
    }

    public String getKeywords() 
    {
        return keywords;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("message", getMessage())
            .append("userId", getUserId())
            .append("typeId", getTypeId())
            .append("keywords", getKeywords())
            .append("createTime", getCreateTime())
            .append("del", getDel())
            .toString();
    }
}
